package com.kgc.scd.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @program: com.kgc.scd.bean
 * @author: HarryXzy
 * @create: 2022-06-15 10:39
 * @description: 封装秒杀通知
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SeckillNotifyResult implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 秒杀通知ID
     */
    @ApiModelProperty(value = "秒杀通知ID")
    private String id;


    /**
     * 秒杀活动ID
     */
    @ApiModelProperty(value = "秒杀活动ID")
    private String seckillId;

    /**
     * 秒杀商品ID
     */
    @ApiModelProperty(value = "秒杀商品ID")
    private String seckillProid;

    /**
     * 秒杀开始时间
     */
    @ApiModelProperty(value = "秒杀开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date seckillStarttime;

    /**
     * 秒杀活动名字
     */
    @ApiModelProperty(value = "秒杀活动名字")
    private String seckillName;

    /**
     * 秒杀用户ID
     */
    @ApiModelProperty(value = "秒杀用户ID")
    private String uid;

    /**
     * 秒杀用户名
     */
    @ApiModelProperty(value = "秒杀用户名")
    private String userName;

    /**
     * 秒杀用户邮箱
     */
    @ApiModelProperty(value = "秒杀用户邮箱")
    private String userEmail;
}
